﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using HTML5Application.Extensions;

namespace HTML5Application
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void webBrowser_Loaded(object sender, RoutedEventArgs e)
        {
        }

        Html5Bridge extensions;

        void webBrowser_Navigated(object sender, 
            System.Windows.Navigation.NavigationEventArgs e)
        {
            if (extensions == null)
            {
                extensions = new Html5Bridge(
                    webBrowser, true);
            }
        }
    }
}